package cn.lutu.domain.service;


import cn.lutu.protocol.dto.RouteAddDTO;
import cn.lutu.protocol.dto.RouteDTO;
import cn.lutu.protocol.dto.SpotAddDTO;
import cn.lutu.protocol.entity.Route;
import cn.lutu.protocol.vo.RouteVO;
import cn.lutu.protocol.vo.VoteVO;
import cn.lutu.util.pojo.vo.PageData;

import java.util.List;

public interface RouteService {

    void insert(RouteDTO routeDTO);

    void update(RouteDTO routeDTO);

    void  delete(Long id);

    RouteVO select(Long id);


    PageData<RouteVO> selectRouteList(Integer pageNum, Integer pageSize);
    PageData<RouteVO> selectRouteList(Integer pageNum);

    RouteVO selectRouteListById(Long id);

    List<RouteVO> selectRoute(Long id);

    void addRoute(RouteAddDTO routeAddDTO);

    void deleteRouteById(Long id);

    Route selectRouteById(Long id);

    void updateRoute(RouteDTO routeDTO);


//    List<VoteVO> selectVoteById(Long id);
}
